package com.lifang.test5;

import com.lifang.framework.annotation.beans.Component;
import com.lifang.framework.beans.factory.event.ContextClosedEvent;
import com.lifang.framework.context.ApplicationListener;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class ApplicationContextClosedEvent implements ApplicationListener<ContextClosedEvent> {

    @Override
    public void onApplicationEvent(ContextClosedEvent event) {
        log.info("接收到容器关闭广播，关闭时间=" + System.currentTimeMillis());
    }

}
